package cn.linstudy.blog.service;

import cn.linstudy.blog.dto.BlackListDTO;
import cn.linstudy.blog.dto.BlackListVagueDTO;
import cn.linstudy.blog.entity.BlackList;
import cn.linstudy.blog.vo.BaseVO;
import cn.linstudy.blog.vo.BlackListByIdVO;
import cn.linstudy.blog.vo.BlackListVagueVO;
import cn.linstudy.blog.vo.CommonListVO;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Author XiaoLin
 * @Date 2021/12/22 16:37
 * @Description
 */
public interface BlackListService extends IService<BlackList> {

    /**
     * 数据列表
     */
    CommonListVO<BlackListVagueVO> list(BlackListVagueDTO blackListVagueDTO);

    /**
     * 添加
     */
    BaseVO add(BlackListDTO blackListDTO, String username);

    /**
     * 修改
     */
    BaseVO update(BlackListDTO blackListDTO, Integer id, String username);

    /**
     * 删除
     */
    BaseVO delete(Integer id);

    /**
     * 根据id查询
     */
    BlackListByIdVO queryBlackListById(Integer id);
}
